package admin

import (
	//"log"
	"qinnailin.cn/myblog/controllers"
)

type AdminBaseController struct {
	controllers.BaseController
}

//身份过滤
func (this *AdminBaseController) Prepare() {
	id := this.Ctx.GetCookie("usertoken")
	if id == "" {
		this.Redirect("/login", 302)
	} else {
		this.BaseController.Prepare()
	}
	return
}
